<div class="row" ng-controller="ClassTypeController">
    <plus-data-grid service-name="ClassTypeService" service-method="findForPage">
        <div class="col-md-12">
            <plus-panel>
            <grid-search-bar search-do="search">
            	<grid-condition-select
                        condition-name="一级类别"
                        condition-type="select"
                        condition-tip="一级类别"
                        service-name="ClassTypeService" service-method="findSuperClassList"
                        select-key="classTypeId"
                        select-value="classTypeName">
            	</grid-condition-select>
            </grid-search-bar>
            <grid-tool-bar>
                <a class="btn btn-primary from-control" href="javascript:;" ng-click="openAdd()">新建类别</a> 
            </grid-tool-bar>
        </plus-panel>
        </div>
        <div class="col-md-12">
            <plus-panel>
                <grid-simple-table columnDef="columnDefs"></grid-simple-table>
            </plus-panel>
        </div>
    </plus-data-grid>
    
    
    <!-- 创建接口 -->
    <div class="modal" data-backdrop="false" id="addDialog">
        <div class="modal-dialog modal-confirm" >
            <div class="modal-content" ng-controller="ClassTypeAddController">
                <plus-dynamic-form form-name="addForm" confirm-do="save" confirm-label="保存" cancel-label="取消">
                    <div class="modal-header">
                        <h4 class="modal-title" id="create_project_1">新建类别</h4>
                    </div>
                    <div class="modal-body" style="max-height:700px;overflow:auto">
                        <form-option-text option-name="classTypeName" option-label="类别名称" option-tip="例如：宝马"></form-option-text>
                        <form-option-text option-name="classTypeIcon" option-label="图标代码" option-tip="例如：BMW" ></form-option-text>
                        <form-option-select
                                option-name="superClassId"
                                option-label="所属类别"
                                service-name="ClassTypeService" 
                                service-method="findSuperClassList"
                                select-key="classTypeId"
                                select-value="classTypeName"
                                cut-length="9"
                                choice-height="100px"
                                option-tip="所属类别">
                        </form-option-select>
                    </div>
                </plus-dynamic-form>
            </div>
        </div>
    </div>
</div>
